package com.fh.wanandroid.ui.knowledge.contract;

import com.fh.wanandroid.base.BaseRxPresenter;
import com.fh.wanandroid.base.BaseView;
import com.fh.wanandroid.ui.knowledge.KnowledgeDataList;
import com.fh.wanandroid.ui.mainpager.bean.FeedArticleListData;

import java.util.List;

public interface KnowledgeListContract {


    interface View extends BaseView {

        void refreshKnowledgeArticle(FeedArticleListData articleList);

        void appendKnowledgeArticle(FeedArticleListData articleList);

        void loadDataFail(String msg);
    }


    abstract class Presenter extends BaseRxPresenter<KnowledgeListContract.View> {

        /**
         * 加载知识体系
         */
        public abstract void loadInitData(int cid);

        /**
         * 加载更多知识体系
         */
        public abstract void loadMoreData(int cid);
    }
}
